package com.admin.core.entity;

import com.admin.common.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author sq-lan
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class SysJob extends BaseEntity implements Serializable {

    @NotNull(groups = Update.class)
    @ApiModelProperty(value = "ID", hidden = true)
    private Integer id;

    @NotBlank
    @ApiModelProperty(value = "岗位名称")
    private String name;

    @NotNull
    @ApiModelProperty(value = "岗位排序")
    private Integer jobSort;

    @NotNull
    @ApiModelProperty(value = "是否启用")
    private Boolean enabled;
}
